package com.example.exammaster.service;

import com.example.exammaster.pojo.Exam;
import com.example.exammaster.pojo.Topic;
import com.example.exammaster.pojo.WrongExam;
import com.example.exammaster.pojo.comment;

import java.util.List;

public interface ExamService {

    Exam getExamById(int projectId,int examId,int projectSelectId);

    int addWrong(int projectId,int projectSelectId, String date,int id);


    int update(int examId,char submit);

    List<String> getWrongListById(int projectId, int projectSelectId);

    List<String> getWrongListByIdDate(int projectId,String date, int projectSelectId);

    Exam getWrongQuestion(int projectId,String date,int id,int projectSelectId);

    List<String> getProjectSelectList(int projectId);

    int getQuestionCount(int projectId,int projectSelectId);

    int getWrongQuestionCount(int projectId,int projectSelectId,String date);

    int setWrongRate(int projectId,int projectSelectId,String date);

    int setQuestionCount(int projectId,Integer projectSelectId,String date);

    int updateQuestionSolvedWrongCount(int projectId,int projectSelectId,String date);

    String getQuestionSolvedRate(int projectId,int projectSelectId,String date);

    List<String> getLineData(int projectId,int projectSelectId);

    List<String> getLineDateList(int projectId,int projectSelectId);

    String getLineName(int projectId,int projectSelectId);

    int addChapterCount(int projectId,int chapter);

    int addChapterWrongCount(int projectId,int chapter);

    List<String> getChapterList(int projectId,int projectSelectId);

    void calChapterRate(int projectId,int chapter);

    double[] getChapterRate(int projectId,int projectSelectId);

    Exam getChapterQuestion(int projectId,int projectSelectId,int chapterId,int questionId);

    int getChapterCount(int projectId,int projectSelectId,int chapterId);

    List<String> getShortList(int projectId,int projectSelectId);

    List<String> getYearList(int projectId,int projectSelectId);

    int[] getExamIdList(int projectId,int projectSelectId);

    int getChapterIdList(int projectId,int examId);

    int getCountByChapterId(int projectId,int projectSelectId,int chapterId);

    List<Topic> getTopicList();

    void addTopic(String img,String title,String date,String submitImg);

    int getStudyDay(int projectId,int projectSelectId);

    Topic getTopic(int id);

    void addComment(int topicId,String img,String comment,String date);

    List<comment> getComment(int topicId);

    void addMathQuestion(String title,String answerA,String answerB,String answerC,String answerD,String realAnswer,int projectSelectId,int chapterId,String examYear,String isImage);

    List<Exam> getMathQuestion();

    List<Exam> selectMathQuestion(int projectSelectId,int chapterId);

    Exam getMathQuestionById(int examId);

    void updateMathQuestionById(String title,String answerA,String answerB,String answerC,String answerD,String realAnswer,int projectSelectId,String examYear,String isImage,int examId);

    List<Exam> getPoliticalQuestion();

    List<Exam> getMajorQuestion();

    List<WrongExam> getMathWrongQuestion();

    List<WrongExam> getPoliticalWrongQuestion();

    List<WrongExam> getMajorWrongQuestion();

    List<comment> getCommentList();
}
